<?php
class UserLogoutAction extends PiscesAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'index';
	}

	public function execute()
	{
		C('LtCookie')->delCookie('user_auth');
		header('Location:'.C('LtUrl')->generate('Default', 'Index'));
	}
}
